var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var copyService = require('../../app/services/copyService');
var PlayerManager = require('../../app/libs/playerManager');
var config = require('../config');
var dataApi = require('../../app/libs/dataApi');

suite('测试copyService', function () {
    var player_manager = new PlayerManager(config.role_id);
    setup(function (done) {
        player_manager.getAllModel(done);
    });

    suite('passCopy', function () {
        test('通关副本', function () {
            copyService.passCopy(player_manager, 1000, 1);
            copyService.passCopy(player_manager, 1000, 3);
        });
    });

    suite('getTotalLostProportion', function () {
        test('获取所有概率的总和', function () {
            copyService.getTotalLostProportion(101);
        });
    });
});
